{% extends "base_generic.html" %}
{% block content %}
  <h1>Series ({{series|length}})</h1>
  <h2><a href="/admin/series//new/" class="add">Add new TV show</a></h2>
  <table class="tablelist">
  {% for serie in series %}
    <tr>
      <td><img src="/image/{{serie.imagekey}}/50/50/cropped/" width="20" /></td>
      <td><a href="/admin/episodes/{{serie.key}}/">{{serie.titleen}}</a></td>
      <td><a href="/admin/series/{{serie.key}}/edit/">Edit</a></td>
      <td><a href="/admin/series/{{serie.key}}/delete/" onclick="return confirm('are you sure do you want to delete \'{{serie.titleen}}\'?');">Delete</a></td>
      <td><a href="/admin/episodes/{{serie.key}}//new/">New episode</a></td>
      <td>{{serie.seasoncounter}} seasons</td>
      <td>{{serie.episodecounter}} episodes</td>
      <td>10547 views</td>
      <td><a href="/{{serie.url}}/">Public</a></td>
    </tr>
{%endfor%}
</table>
{% endblock %}
